<?php
/**
 * 交易对验证器
 */

namespace app\common\validate;

class TradingValidate extends Validate
{
    protected $rule = [
            'exchange|交易所' => 'require',
    'rightname|交易对' => 'require',
    'aliasname|别名' => 'require',

    ];

    protected $message = [
            'exchange.require' => '交易所不能为空',
    'rightname.require' => '交易对不能为空',
    'aliasname.require' => '别名不能为空',

    ];

    protected $scene = [
        'add'  => ['exchange','rightname','aliasname',],
'edit' => ['exchange','rightname','aliasname',],

    ];

    

}
